##########################################################
# gnuplot script file to plot folded speed data
#
#---------------------------------------------------------
# bmort 26july07
##########################################################
reset
set terminal postscript landscape enhanced color dashed lw 1 "Helvetica" 11
set output "my-plot.ps"
unset key
set key spacing 2
unset label
set grid xtics ytics
set xtics 0.1
set mxtics 2
set mytics 2
set ylabel "mean amp."
set xlabel "phase bin (mid phase)"

set title "folded speed data [speeds\\_spacing2.dat] (freq = 0.0764157)" font "Helvetica,16"

plot "speeds_spacing2_f0.0764157_o0_nb20.dat" using 2:3:4 with yerr \
     title "speeds\\_spacing2\\_f0.0764157\\_nb20.dat", \
     "speeds_spacing2_f0.0764157_o0_nb20.dat" using 2:3:(1E8*$4) smooth acsplines \
     title "acsplines fit" with lines, \
     0.00205244*cos(2*pi*x-0.8041749*pi)+0.2584 title "0.2584+0.00205244*cos(2*pi*x-0.8041749*pi)"
     
set terminal x11
!mv my-plot.ps FOLDINGplot.ps